package com.tongguan.paypos.activity.trans;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.tongguan.paypos.R;
import com.tongguan.paypos.base.BaseActivity;
import com.tongguan.paypos.utils.L;
import com.tongguan.paypos.utils.ToastUtils;

public class ResultManageActivity extends BaseActivity {
    public static final String EXCHANGE_FRAGMENT_NAME = "fragmentName"; //类型  WK  ,HYC

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_result_manage);
        initTile(R.string.title_pay_result, true);
        //外卡失败返回
        Bundle extras = getIntent().getExtras();
        if (extras!=null){
            String name = extras.getString(EXCHANGE_FRAGMENT_NAME);
            Fragment  mFragment = Fragment.instantiate(context,name);
            mFragment.setArguments(extras);
            getSupportFragmentManager().beginTransaction().add(R.id.container,mFragment).commit();
        }else {
            ToastUtils.showCustom(context,"内容为空！");
        }
    }
}

